/*
 * ddc_final.c
 *
 * Created: 2012.11.22. 13:44:18
 *  Author: some00
 */ 

//;pfas

# define F_CPU 16000000UL

#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include "infra.h"
#include "twi.h"
#include "uart.h"
#include "logic.h"

int main(void)
{
	USART_Init(MYUBRR);
	InitLogic();
	InitTwi();
	InitInfra();
	sei();
	
	while(1)
	{
		AddInfraButton();
		AddUartButton();
		
		sendNextCommand();
	}
}